import 'package:flutter/material.dart';

import '../compant/Appcolor.dart';
import '../compant/Kbutton.dart';

import '../compant/signTextField.dart';
import 'Resetlinksent.dart';

class Forgotpassword extends StatefulWidget {
  const Forgotpassword({super.key});

  @override
  State<Forgotpassword> createState() => _ForgotpasswordState();
}

class _ForgotpasswordState extends State<Forgotpassword> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: Padding(
        padding: const EdgeInsets.all(30.0),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            Text(
              "Reset password",
              style: TextStyle(color: textColor, fontSize: 26),
              textAlign: TextAlign.center,
            ),
            const SizedBox(
              height: 30,
            ),
            Text(
              "Enter your email address accociate with your\n PhotoXia account",
              style: TextStyle(color: textGaryColor, fontSize: 16),
              textAlign: TextAlign.center,
            ),
            const SizedBox(
              width: double.infinity,
            ),
            const SizedBox(
              height: 30,
            ),
            const signTextField(
              text: 'Email',
            ),
            const SizedBox(
              height: 30,
            ),
            Kbutton(
              ontap: () {
                Navigator.push(context,
                    MaterialPageRoute(builder: (BuildContext context) {
                  return const Resetlinksent();
                }));
              },
              text: 'Reset Password',
            ),
            const Spacer()
          ],
        ),
      ),
    );
  }
}
